﻿using System;
using System.Runtime.Serialization;

namespace HobSoft.SoccerBet2014.Domain.Models.Site
{
    using Core;
    [Serializable]
    [DataContract]
    public class BettingResult : IModel
    {
        private BettingOrder _order;
        [DataMember]
        public BettingOrder Order
        {
            get { return _order; }
            set { _order = value; }
        }
        

        private string _message;
        [DataMember]
        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        private BettingState _state;
        [DataMember]
        public BettingState State
        {
            get { return _state; }
            set { _state = value; }
        }
        
    }

    public enum BettingState
    {
        /// <summary>
        /// 成功
        /// </summary>
        Succeed,
        /// <summary>
        /// 重置
        /// </summary>
        Reset,
        /// <summary>
        /// 暂停
        /// </summary>
        Suspend,
        Failed,
        /// <summary>
        /// 未知结果，到订单列表查询
        /// </summary>
        ToOrder,
        Unknow
    }
}
